﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_PressReleaseClippingsHolder_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

<script>
    $(document).ready(function() {
    
        initjScrollPane();
        
        $('.cblLanguage span label').each(function(index) {

            txt = $(this).text();
            $(this).addClass(txt)
            //txt = $(this).text;
            //$(this).addClass(txt)
        });

        $('#<%= cblProducts.ClientID%> input:checkbox, #<%= cblLanguages.ClientID%> input:checkbox').click(function() {
            $('#<%= btnApplyFilter.ClientID %>').click();
        });
        //$('.cblLanguage span label').addClass($('.cblLanguage span label').text);
    })    

</script>


      
	
<%--<script type="text/javascript">
    var checkAll = function(checked) {
        var ids = new Array();
        ids[0] = "<%=cblProducts.ClientID%>";
        ids[1] = "<%=cblLanguages.ClientID%>";
        
        for (var i = 0; i < ids.length; i++) {
            var n = 1;
            var elem = document.getElementById(ids[i] + "_item" + n);
            while (elem) {
                elem.checked = checked;
                n++;
                elem = document.getElementById(ids[i] + "_item" + n);
            }
        }
        return false;
    }
    </script>	--%>
   <asp:Panel runat="server" ID="pnlCheckAllCheckBoxList" Visible="false">
    <script type="text/javascript">
        $(document).ready(function() {
            $('.checkboxList input:checkbox').attr('checked', 'checked');
        });
        </script>
    </asp:Panel>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTop" Runat="Server">
     <div id="top" class="presRelease clearfix" style="">
        <div class="filterCol">
            <%--<ajax:Accordion ID="accordianFilter" CssClass="expandableForm" ContentCssClass="content" HeaderCssClass="header normal" HeaderSelectedCssClass="header selected"  RequireOpenedPane="false" SelectedIndex="0" runat="server">
                <Panes>
                    <ajax:AccordionPane ID="accordianFilterPane"  runat="server">
                        <Header><h3>Select Product</h3></Header>
                        <Content>--%>
                        
            <h3>Products</h3>
            <acms:CheckBoxList ID="cblProducts" CssClass="checkboxList cblProduct clearfix" DataTextField="Name" DataValueField="Id" runat="server" /></li>

            <h3>Language</h3>
            <acms:CheckBoxList ID="cblLanguages" CssClass="checkboxList cblLanguage clearfix" DataTextField="Name" DataValueField="Id" runat="server" /></li>
            
            <asp:HiddenField ID="txtFirstFilter" runat="server" Value="0" />

            <div class="controlsHolder">
                <asp:ImageButton ImageUrl="~/Images/transparent.gif" ID="btnApplyFilter" CssClass="" Text="" OnClick="btnApplyFilter_Click" runat="server" />
            </div>
            
        </div>
        <div class="rcol scroll-pane " style="height: 315px;">
        
            <telerik:RadAjaxLoadingPanel ID="loading" InitialDelayTime="0" MinDisplayTime="0" BackColor="Transparent" Transparency="10" Height="315" runat="server">
                <div class="loadingx" style="width:720px; height:315px; background-color:Gray" >
                    <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px; margin-top:100px" />
                </div>
            </telerik:RadAjaxLoadingPanel>
        
            <telerik:RadAjaxManager ID="ajaxManager" ClientEvents-OnResponseEnd="onResponseEnd" DefaultLoadingPanelID="loading"  runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="btnApplyFilter">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="dlFeed" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
        
            <acms:PostDataSource ID="dsList" runat="server" />
        
            <acms:AcmsDataList ID="dlFeed" DataSourceID="dsList" CssClass="pnlFeed" AllowPaging="false" runat="server">
                
                <NoDataTemplate>
                <p>No Data.</p>
                </NoDataTemplate>
                <HeaderTemplate>
                  
                    <table class="displayTable" border="0" cellpadding="0" cellspacing="0" style="">
                        <thead>
                            <tr>
                                <th class="tdTitle" >Title</th>
                                <th class="tdCategory" >Category</th>
                                <th class="tdLanguage" >Language</th>
                                <th class="tdDate" >Date</th>
                                <th class="tdView" >View</th>
                            </tr>
                        </thead>
                        <tbody>
                </HeaderTemplate>
                
                <FooterTemplate>
                      </tbody>
                    </table>
                </FooterTemplate>
                
                <ItemTemplate>
                    <tr>
                        <td class="tdTitle">
                            <%--<acms:PdfContentControlDisplay Target="_blank" CssClass="pdfDownload" runat="server" ControlName="PdfArticle" />--%>
                            <asp:HyperLink runat="server" ID="lnkPdf" CssClass="pdf" Target="_blank" runat="server" />
                            
                        </td>
                        <td class="tdCategory"><acms:TextContentControlDisplay ID="TextContentControlDisplay1" ControlName="ProductCategory" runat="server" /> <%--<acms:PostDisplayName runat="server" />--%></td>
                        <td class="tdLanguage"><asp:Label ID="lblLanguage" runat="server" /></td>
                        <%--<td><acms:PostPublishFrom runat="server" Format="dd/MM/yyyy" /> </td>--%>
                        <td class="tdDate"><acms:TextContentControlDisplay runat="server" ControlName="ReleaseDate" />  </td>
                        <td class="tdView"><acms:PdfContentControlDisplay ID="PdfContentControlDisplay1" CssClass="" Text="View" Target="_blank" runat="server" ControlName="PdfArticle" /></td>
                    </tr>
                            
                    </ItemTemplate>
                    <%--</acms:AcmsDataList>--%>
            </acms:AcmsDataList>

        </div>
        <div class="clearfix"></div>
        
        <div id="subNav" style="" class="clearfix">
            <ul id="navApplications">
                <acms:SimpleRepeater ID="dlNavSiblings" DataSourceID="dsSibling" AllowPaging="false" runat="server">
                    <ItemTemplate>
                            <li runat="server" id="navLi" class="sibling" >
                                <asp:HyperLink ID="lnkNav" CssClass="navApplication" NavigateUrl="#" runat="server" />
                            </li>
                        </ItemTemplate>
                    </acms:SimpleRepeater>
            </ul>
            
            
            <ul id="navDetails">
               
            </ul>
        </div>
        <acms:PostDataSource ID="dsSibling" runat="server" />
        
        
        <div id="pageTitle" class="clearfix">
            <h1><acms:PostDisplayName ID="PostDisplayName" runat="server" /></h1>
            <%--<a href="#" id="moreInfo" class="off">More Info</a>--%>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentBase" Runat="Server">
</asp:Content>


